//
//  UIView+HDEditDeleteSheet.h
//  Erecycling
//
//  Created by pro on 2016/11/29.
//  Copyright © 2016年 pro. All rights reserved.
//

#import <UIKit/UIKit.h>

//设备宽/高/坐标
#define kDeviceWidth [UIScreen mainScreen].bounds.size.width
#define KDeviceHeight [UIScreen mainScreen].bounds.size.height
#define KDeviceFrame [UIScreen mainScreen].bounds
#define kWindow [UIApplication sharedApplication].keyWindow

#define kRGB(R,G,B,ALPHA) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:ALPHA]
#define kRGBRef(R,G,B,ALPHA) [kRGB(R,G,B,ALPHA) CGColor]


@interface  HDEditDeleteSheet : UIView
{
    UIView *transparentView;//背景控制 点击移除视图
    UIView *actionSheetView;//主视图
    
@private
    CGFloat actionSheetHeight;//弹出菜单高度
    CGFloat actionSheetY;//弹出菜单
    
}

//按钮点击事件回调
@property (nonatomic, copy) void (^editDeleteActionSheetActionBlock) (UIButton *);


@property (nonatomic,copy) void(^msgCodeBlock)(NSString * );

/**
 *  显示在哪个视图上
 *
 *  @param view 要显示的父视图
 */
- (void)showEditDeleteActionSheetInView:(UIView *)view;
- (void)showEditDeleteActionSheet;

/**
 *  隐藏事件
 */
- (void)hideEditDeleteActionSheet;

-(id)initWithParams:(NSDictionary *)params Sign:(NSString*)sign;


@end
